package net.zjitc.Shape;

/**
 * @Author admin
 * @Date 2019/3/20 9:19
 */
public class Triangle extends  Shape{
    Triangle(){

    }
    Triangle (String  name){
       super(name);
    }
    @Override
    public void print(){
        System.out.println(name+"面积是: (c*h)/2");
    }
}
